package com.hejielife.threadspecificstorage1;

import java.io.PrintWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * 2019年8月2日 下午3:55:50
 * 
 * @author hejielife
 * @despribe TSLog
 */
public class TSLog {
	private PrintWriter writer = null;

	public TSLog(String filename) {
		try {
			writer = new PrintWriter(new FileWriter(filename));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public void println(String s) {
		writer.println(s);
	}

	public void close() {
		writer.println("==== End of log ====");
		writer.close();
	}
}
